<?php
	$kode = $_POST['kode'];
	$nama = $_POST['nama'];
	$jenis = $_POST['jenis'];
	$alamat = $_POST['alamat'];
	$kabupaten = $_POST['kabupaten'];
	$kelas = $_POST['kelas'];
	$kelas_tarif = $_POST['kelas_tarif'];
	$direktur = $_POST['direktur'];
	
	if(isset($_POST['submit'])){
		$sql="insert into ppk values ($kode,$jenis,'$nama','$alamat','$kabupaten',$kelas,$kelas_tarif,'$direktur')";
		$qry=mysql_query($sql);
	}
	$url_sukses='utama.php?module=mod_ppk';
	if($qry){
		echo "<meta http-equiv='refresh' content='0; url=$url_sukses'>";
		exit;
	}else{
		echo mysql_error();
	}
?>